﻿using Idte.Application.Core.Actor;
using Idte.Common.Process;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Idte.Application.Core
{
    public class AppContext : ExecutionContext
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }

        [ForeignKey("AppId")]
        public ApplicationModel AppModel { get; set; }
        public Guid AppId { get; set; }
        public bool IsDefault { get; set; }

        public ICollection<UserAppRole> Roles { get; set; }
        public string Title { get; set; }
        public string Controller { get; set; }
        public string Action { get; set; }
    }
}
